<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			var b=["aaa","bb","ccc"];//3
			var a=new Array(4);
			a[0]="茄子";
			a[1]="黄瓜";
			a[100]="西红柿";
			alert(a.length);
			//a.length=10;
			alert("压缩后："+a.join(","));
			a["companyName"]="北星科技";
			a["startDate"]="2019-8-2";
			alert(a.length);
			alert(a["startDate"]);
			for(var i in a){
				document.write(i+"="+a[i]+"<br/>");
			}
		</script>
	</head>
	<body>
	</body>
</html>
